import request from '@/utils/request'

export function fetchPanelGroupViewData() {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    url: '/view/getPanelGroupViewData',
    method: 'get'
  })
}

export function fetchLineChartViewData() {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    url: '/view/getLineChartViewData',
    method: 'get'
  })
}

// export function fetchRaddarChartViewData() {
//   return request({
//     baseURL: process.env.VUE_APP_ADMIN_API,
//     url: '/view/fetchRaddarChartViewData',
//     method: 'get'
//   })
// }

export function fetchPieChartViewData() {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    url: '/view/getPieChartViewData',
    method: 'get'
  })
}

export function fetchBarChartViewData() {
  return request({
    baseURL: process.env.VUE_APP_ADMIN_API,
    url: '/view/getBarChartViewData',
    method: 'get'
  })
}
